package com.letoo.dragon.common.domain;


/**
 * 结果码枚举
 * 
 * @author dengjie
 * 
 */
public enum ResultCode {	

    /**
     * 通用的返回码
     */
    COMMON_SUCCESS("C00001","成功","成功"),
    COMMON_FAILED("C00002","失败","网络去恋爱了，请检查设置"),
    COMMON_NO_PERMISSION("C00995", "您没有权限进行此操作","亲，您的账号在其他设备登陆"),
    COMMON_PARAMETER_ERROR("C00996","请求参数错误","请求参数错误"),
    COMMON_BUSINESS_EXCEPTION("C00997","业务异常","网络去恋爱了，请检查设置"),
    COMMON_SYSTEM_EXCEPTION("C00998","服务器暂时无法处理您的请求，请稍候再试。","网络去恋爱了，请检查设置"),
    COMMON_SYSTEM_ERROR("C00999","系统错误","网络去恋爱了，请检查设置"),
    
    SSO_REGISTER_MOBILE_IS_ILLEGAL("100000","注册手机号码为空或者格式错误","注册手机号码为空或者格式错误"),
    SSO_REGISTER_CAPTCHA_IS_ILLEGAL("100001","验证码错误","验证码错误，请重新输入"),
    SSO_REGISTER_PASSWORD_IS_ILLEGAL("100002","注册密码为空或者格式错误","注册密码为空或者格式错误"),
    SSO_REGISTER_HEADPORTRAIT_IS_ILLEGAL("100003","注册头像为空","注册头像为空"),
    SSO_REGISTER_NICKNAME_IS_ILLEGAL("100004","注册昵称为空或者非法","注册昵称为空或者非法"),
    SSO_REGISTER_BIRTHDAY_IS_ILLEGAL("100005","注册生日非法","注册生日非法"),
    SSO_REGISTER_GENDER_IS_ILLEGAL("100006","注册性别非法","注册性别非法"),
    SSO_REGISTER_MOBILE_IS_EXISTED("100007","注册手机号码已经存在","注册手机号码已经存在"),
    SSO_LOGIN_ACCOUT_IS_ILLEGAL("100008","登陆账号密码错误","登陆账号密码错误"),
    SSO_FORGET_PASSWORD_MOBILE_NOT_EXISTED("100009","忘记密码输入手机号码不存在","忘记密码输入手机号码不存在"),
    SSO_LOGOUT_FAILED("100010","用户退出失败","用户退出失败"),
    SSO_USER_IS_NOT_EXISTED("100011","用户不存在","用户不存在"),
    SSO_UPDATEPWD_ORIGINALPWD_NOT_EQUALS("100012","修改密码时输入旧密码与服务器密码不一致","修改密码时输入旧密码与服务器密码不一致"),
    SSO_UPDATEPWD_ORIGINALPWD_EQUALS_NEWPWD("100013","修改密码时输入的新密码与原密码一致","修改密码时输入的新密码与原密码一致"),
    SSO_FORGET_UPDATEPWD_CAPTCHA_IS_EXPIRED("100014","忘记密码中修改密码时输入的验证码超时失效","忘记密码中修改密码时输入的验证码超时失效"),
    SSO_FORGET_UPDATEPWD_CAPTCHA_IS_NOT_EQUALS("100015","忘记密码中修改密码时输入的验证码与发送的不一致","忘记密码中修改密码时输入的验证码与发送的不一致"),
    SSO_SIGN_IS_NOT_EQUALS("100016","校验token时url签名不一致","校验token时url签名不一致"),
    SSO_LOGIN_USER_IS_DISABLED("100017","用户被禁用","用户被禁用"),
    SSO_LOGIN_USER_FAILED_NUMBER_IS_TOO_MUCH("100018","该用户登录失败次数太多，请等待后重试","该用户登录失败次数太多，请等待后重试"),
    SSO_LOGIN_USER_PWD_IS_ERROR("100019","密码错误","密码错误"),
    SSO_TOKEN_IS_ERROR("100020","token错误","token错误"),
    SSO_VALIDATE_IS_FAILED("100021","您的账号在其他地方登陆","鉴权失败"),
    SSO_LOGIN_ACCOUT_IS_NOT_EXISTED("100022","手机号码未注册","手机号码未注册"),
    SSO_REGISTER_FEELINGSTATUS_IS_ILLEGAL("100023","注册情感状态非法","注册情感状态非法"), 
    SSO_ILLEGAL_INVITER("10024","邀请者不存在","邀请者不存在"),
    SSO_THIRD_PARTY_LOGIN_ACCOUT_IS_NOT_EXISTED("100025","第三方账号未注册绑定","第三方账号未注册绑定"),
    SSO_REGISTER_CLIENTID_IS_EXISTED("100026","注册的设备clientId已经存在","该手机已经注册过用户，请更换手机进行注册"),
    ;
    
	/**
	 * 结果码
	 */
	private String code;
	/**
     * 记录log的日志内容。这个字段不用发送给前端一般。
     */
    private transient String logContent;
	/**
	 * 描述
	 */
	private String description;
	
	private ResultCode(String code,String logContent, String description) {
		this.code = code;
		this.logContent=logContent;
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}

    public String getLogContent() {
        return logContent;
    }

}
